import request from '@/utils/request'


export function getPositionList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/mechanism/admin/position/getList',
    method: 'post',
    data: query
  })
}   

export function savePosition(query) {
  return request({
    url: '/mechanism/admin/position/save',
    method: 'post',
    data: query
  })
}

export function removePosition(query) {
  return request({
    url: '/mechanism/admin/position/remove',
    method: 'post',
    data: query
  })
}
export function getPositionDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/mechanism/admin/position/getDetail',
    method: 'post',
    data: query
  })
}